<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ajinlong
  Date: 2021/6/17
  Time: 16:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>发布博文</title>
</head>
<body>

<div><p>有什么想跟大家分享的</p></div>

<div>
    <form action="./publish" method="post">
        <div>
            <textarea name="content" id="" cols="30" rows="10">${post.content}</textarea>
        </div>
        <select name="visibility">
            <c:forEach items="${visibility}" var="visibility">
                <option value="${visibility}" ${visibility==post.visibility?"selected":""}>${visibility}</option>
            </c:forEach>
        </select>
        <div>    <input type="submit" value="提交">
        </div>
        <p>${errorMsg}</p>
    </form>
</div>



</body>
</html>
